package org.se.scut.pinterest.mina.codec.coder.cxt;

import org.apache.mina.core.buffer.IoBuffer;

public abstract class BaseContext {

	protected BaseContext(IoBuffer in){
		innerBuffer = in;
	}
	
	protected final IoBuffer innerBuffer;
	
	private String symbol;
	
	protected int matchCount = 0;
	
	protected int lineNumber = 0;

	public int getMatchCount() {
		return matchCount;
	}

	public void setMatchCount(int matchCount) {
		this.matchCount = matchCount;
	}

	public int getLineNumber() {
		return lineNumber;
	}

	public void setLineNumber(int lineNumber) {
		this.lineNumber = lineNumber;
	}

	public String getSymbol() {
		return symbol;
	}

	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}

	public IoBuffer getInnerBuffer() {
		return innerBuffer;
	}
	
	public abstract void resetData();
	
}
